<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue重构</title>
    <script src="../js/vue.js"></script>
</head>
<body>

<template v-for="service in services">
    <tr>
        <td rowspan="2">
            <input type="checkbox" name="checkbox1" value="' + service.id + '">
        </td>
        <th rowspan="2">
            <a target="_blank" href="${fullPath}jiance/' + service.id + '.html">
                <img src="${pageContext.request.contextPath}/' + service.iconUrl1 + '" height="60px" width="60px"></a>
        </th>
        <td colspan="9">
            <table width="100%">
                <tr>
                    <td width="8%">服务名称：</td>
                    <td align="left">
                        <a target="_blank"
                           href="${pageContext.request.contextPath}/service/service_update.html?id=' + service.id + '">
                        </a>
                    </td>
                    <td align="right">
                        <button type="button" name="passServiceBtn" value="' + service.id + '"
                                class="btn btn-danger btn-xs">审核通过
                        </button>
                        &nbsp;
                        <button type="button" class="btn btn-danger btn-xs" name="nopassServiceBtn"
                                value="' + service.id + '">审核不通过
                        </button>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <a :href=" '${pageContext.request.contextPath}/user/account.html?id=' + service.org_id ">{{service.orgAcountName}}</a>
        </td>
        <td>{{service.org_name_cn}}</td>
        <td>{{service.linkManName}}</td>
        <td v-if="service.checkStatus == null">等待审核</td>

        <td v-if="service.checkStatus == 1">{{service.checkStatus == 1 ? "审核通过" : "审核不通过"}}</td>
        <td v-if="service.checkTime != null">" + new Date(service.checkTime).format("yyyy-MM-dd") + "</td>
        <td v-if="service.checkTime = null"></td>
        <td>{{service.salesVolume}}</td>
        <td>mark</td>
        <td>
        <span class="badge" v-if="service.checkStatus == null">
        等待审核
        </span>
            <span class="badge" v-if="service.checkStatus == 1">
            {{service.status == 1 ? '上架(通过)':''}}
            {{service.status == 2 ? '下架(通过)':''}}
            {{service.status == 3 ? '冻结(通过)':''}}
            {{service.status == 4 ? '新发(通过)':''}}
        </span>
            <span v-show="false">审核不通过</span>
        </td>
        <td>{{service.updateTime == null ? '' : new Date(service.updateTime).format("yyyy-MM-dd"))}}</td>
    </tr>
</template>



<tr>
    <td rowspan="2">
        <input type="checkbox" name="checkbox1" :value=" service.id ">
    </td>
    <th rowspan="2">
        <a target="_blank" :href=" '${fullPath}jiance/' + service.id + '.html' ">
            <img :src=" '${pageContext.request.contextPath}/' + service.iconUrl1 " height="60px"
                 width="60px"></a>
    </th>
    <td colspan="9">
        <table width="100%">
            <tr>
                <td width="8%">服务名称：</td>
                <td align="left">
                    <a target="_blank"
                       :href=" '${pageContext.request.contextPath}/service/service_update.html?id=' + service.id ">
                        {{service.title}}
                    </a>
                </td>
                <td align="right">
                    <button type="button" name="passServiceBtn" :value=" service.id "
                            class="btn btn-danger btn-xs">审核通过
                    </button>
                    &nbsp;
                    <button type="button" class="btn btn-danger btn-xs" name="nopassServiceBtn"
                            :value=" service.id ">审核不通过
                    </button>
                </td>
            </tr>
            <tr>
                <td>
                    <a :href=" '${pageContext.request.contextPath}/user/account.html?id=' + service.org_id ">{{service.orgAcountName}}</a>
                </td>
                <td>{{service.org_name_cn}}</td>
                <td>{{service.linkManName}}</td>
            </tr>
        </table>
    </td>
</tr>


</body>
<script>

</script>
</html>